import { RequestConfig } from "umi";
import { AxiosResponse } from "@@/plugin-request/types";


export const request: RequestConfig = {
  errorConfig: {
    errorHandler: () => {
    },
    errorThrower: () => {
    }
  },
  requestInterceptors: [],
  responseInterceptors: [
    (response) => {
      return new Promise<AxiosResponse>((resolve) => {
        resolve(response);
      });
    }
  ],
};